﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="CarBasicManage.aspx.cs" Inherits="CarManage_CarBasicManage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>车辆基本信息管理</title>
    <script type="text/javascript">
        function AddPage() {
            var url = "CarBasicEdit.aspx?action=insert";
            var objWindow = window.open(url, '', 'top=200,left=200,toolbar=no,menubar=no,scrollbars=yes,location=no,status=no,width=500,height=250;');
            return false;
        }
    </script>
    <link href="../css/page.css" rel="Stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div style="text-align: center">
        <table style="width: 100%; border-bottom-width: 0px" class="tab">
            <tr style="border-bottom-width: 0px">
                <td style="text-align: left; border-bottom-width: 0px">
                    &nbsp;<strong> 车牌号：</strong><asp:TextBox runat="server" ID="txtCph" Text=""></asp:TextBox>
                    <asp:Button ID="btnQuery" runat="server" Text="查询" CssClass="input" OnClick="btnQuery_Click" />
                    <input type="button" class="NewButton" value="添加" onclick="AddPage();" />
                </td>
            </tr>
        </table>
        <table style="width: 100%">
            <tr>
                <td>
                    <controlDefine:CustomGridView ID="gridviewCar" runat="server" AllowPaging="True"
                        Width="100%" HideTextLength="30" DivFstClass-DivButtonClass="input" AutoGenerateColumns="False" SkinID="List"
                        DivScdClass-DivButtonClass="input" DivTrdClass-DivButtonClass="input" ShowCmpAndCancel="False"
                        AllowOnMouseOverEvent="False" ShowItemNumber="True" AutoGenerateDeleteConfirm="True" ShowHideColModel="None" 
                        CustomSortExpression="" AllowSortingAscImgCss="" AllowSortingDescImgCss="" 
                        OnRowCreated="gridviewCar_RowCreated">
                        <PagerSettings Visible="False" />
                        <Columns>
                            <asp:BoundField HeaderText="车牌号" DataField="CPH" />
                            <asp:BoundField HeaderText="车辆型号" DataField="CLXH" />
                            <asp:BoundField HeaderText="驾驶员姓名" DataField="username" />
                            <asp:BoundField HeaderText="驾驶证号" DataField="JSZH" />
                            <asp:BoundField HeaderText="油耗标准" DataField="YHBZ" />
                            <asp:TemplateField HeaderText="查看">
                                <ItemTemplate>
                                    <asp:HyperLink ID="hyview" runat="server" Text="查看"></asp:HyperLink>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="编辑">
                                <ItemTemplate>
                                    <asp:HyperLink ID="hyedit" runat="server" Text="编辑"></asp:HyperLink>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="删除">
                                <ItemTemplate>
                                    <asp:HyperLink ID="hydel" runat="server" Text="删除"></asp:HyperLink>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                    </controlDefine:CustomGridView>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
